/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import daoimpl.DentistaDaoImpl;
import java.util.List;
import model.Dentista;

/**
 *
 * @author Rodrigo
 */
public class ControllerDentista {

    private final DentistaDaoImpl dao;

    public ControllerDentista() {
        dao = new DentistaDaoImpl();
    }

    public void inserir(Dentista d) {
        dao.inserir(d);
    }

    public void alterar(Dentista d) {
        dao.alterar(d);
    }

    public void deletar(Dentista d) {
        dao.deletar(d);
    }

    public List<Dentista> listarTodos() {
        return dao.listarTodos();
    }

    public Dentista listarPorId(int id) {
        return dao.listarPorId(id);
    }
}
